const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");

module.exports = {
  mode: 'development',
  entry: {
    usdt: "./src/usdt/usdt.js",
  },
  output: {
    filename: '[name].js',
    path: path.resolve(__dirname, 'dist')
  },
  plugins: [
    new CopyWebpackPlugin([
      {
        from: "./src/usdt/usdt.html", to: "usdt.html"
      },
      {
        from: "./src/usdt/USDT.json", to: "USDT.json"
      }
    ]),
  ],
  devServer: { contentBase: path.join(__dirname, "dist"), compress: true },
};
